package com.wicket.okrapp.biz.service.dto.common;

import com.wicket.okrapp.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;

import lombok.Data;
import java.util.Objects;

/**
 * @desc DutyBodyTargetObjectiveOrderNumListDto
 * @使用场景
 */
@Data
public class DutyBodyTargetObjectiveOrderNumListDto
  extends BaseDto
  implements Serializable {

  /**
   * 指标ID
   */
  @ApiModelProperty("指标ID")
  private String objectiveId;

  /**
   * 责任主体排序
   */
  @ApiModelProperty("责任主体排序")
  private Long dutyBodyOrderNum;
@Override
  public boolean equals(Object o) {
      if (this == o) return true;
      if (o == null || getClass() != o.getClass()) return false;
      if (!super.equals(o)) return false;
      DutyBodyTargetObjectiveOrderNumListDto that = (DutyBodyTargetObjectiveOrderNumListDto) o;
      return  objectiveId == that.objectiveId&&dutyBodyOrderNum == that.dutyBodyOrderNum;
    }
@Override
  public int hashCode() {
      return Objects.hash(super.hashCode(), objectiveId,dutyBodyOrderNum);
    }

}
